package com.BlackMesa.models;

import java.io.Serializable;

import com.google.android.maps.GeoPoint;

public class OurLocation implements Serializable {
	private String name;
	private int lati,longi;
	private int id;
	
	
	public OurLocation(String name,GeoPoint loc) {
		this.name = name;
		this.lati = loc.getLatitudeE6();
		this.longi = loc.getLongitudeE6();
	}
	
	public OurLocation(String name,GeoPoint loc, int id) {
		this.name = name;
		this.lati = loc.getLatitudeE6();
		this.longi = loc.getLongitudeE6();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public GeoPoint getLoc() {
		return new GeoPoint(lati,longi);
	}

	public void setLoc(GeoPoint loc) {
		this.lati = loc.getLatitudeE6();
		this.longi = loc.getLongitudeE6();
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
}
